<?php
/**
 * 游戏列表入口
 *
 */

define('APPTYPEID', 2);
define('APPTYPENAME', 'FAMOUSOGLDS_GAMES');
define('CURCONFIG', 1);
define('CURSCRIPT', '');


/**
 * @see famous_core
 */
require 'source/class/class_core.php';
$famous = &famous_core::instance();
$famous->init();

$mod = isset($_G['mod']) ? $_G['mod'] : '';
$modarray = array('index');

if (empty($mod) || !in_array($mod, $modarray)) {
	$mod = $_G['mod'] = $modarray[0];
}

// 检查动作名的合法性
if (empty($_G['action']) || !preg_match('/^[a-zA-Z]+$/', $_G['action'])) {
	showmessage('undefined_action', dreferer());
}
